package net.maergaiyun.service;

import lombok.extern.slf4j.Slf4j;
import net.maergaiyun.enums.SendCodeEnum;
import net.maergaiyun.util.JsonData;
import org.springframework.stereotype.Service;

public interface NotifyService {
    /**
     * 发送短信验证码
     *
     * @param sendCodeEnum
     * @param to
     * @return
     */
    JsonData sendCode(SendCodeEnum sendCodeEnum, String to);
//    void testSend();

    /**
     * 校验验证码
     *
     * @param sendCodeEnum
     * @param to
     * @param code
     * @return
     */
    boolean checkCode(SendCodeEnum sendCodeEnum, String to, String code);
}
